Python for-loop to change row value based on a condition works correctly but does not change the val

visit shbcf.ru